package com.etc.service;

import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;

public class RMIservet {
    public static void main(String[] args) {
        try {

            Ibiz biz = new BizImpl();
            LocateRegistry.createRegistry(9999);
            Naming.bind("rmi://127.0.0.1:9999/hello",biz);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }


}
